  /**
   * Generate time : 2016-04-05 14:18:40
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGMessageLog 
 * table comment : 消息记录表 
 */
public class ZMCGMessageLog extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdUserId = "FD_USER_ID";		/* 对应用户ID*/
	private String fdMessageId = " ";		/* 消息ID*/
	private String fdBusinessId = " ";		/* 对应业务ID*/
	private String fdMessageType = "系统消息";		/* 消息类型*/
	private String fdMessageTitle = " ";		/* 消息标题*/
	private String fdFrontPage = "ZM";		/* 对应页面*/
	private String fdFrontType = "DETAILS";		/* 页面类型*/
	private String fdStatus = "0";		/* 消息状态*/
	private String fdSendTime = " ";		/* 发送时间*/
	private String fdReadTime = " ";		/* 阅读时间*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUserId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("对应用户ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMessageId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("消息ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBusinessId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("对应业务ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMessageType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("消息类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMessageTitle");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("消息标题");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdFrontPage");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("对应页面");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdFrontType");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("页面类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("消息状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("发送时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReadTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("阅读时间");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCGMessageLog() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdUserId - 对应用户ID
	 * @return the fdUserId
	 */
	public String getFdUserId() {
		return this.fdUserId;
	}
	
	/**
	 * set the fdUserId - 对应用户ID
	 */
	public void setFdUserId(String fdUserId) {
		this.fdUserId = fdUserId;
	}
	/**
	 * get the fdMessageId - 消息ID
	 * @return the fdMessageId
	 */
	public String getFdMessageId() {
		return this.fdMessageId;
	}
	
	/**
	 * set the fdMessageId - 消息ID
	 */
	public void setFdMessageId(String fdMessageId) {
		this.fdMessageId = fdMessageId;
	}
	/**
	 * get the fdBusinessId - 对应业务ID
	 * @return the fdBusinessId
	 */
	public String getFdBusinessId() {
		return this.fdBusinessId;
	}
	
	/**
	 * set the fdBusinessId - 对应业务ID
	 */
	public void setFdBusinessId(String fdBusinessId) {
		this.fdBusinessId = fdBusinessId;
	}
	/**
	 * get the fdMessageType - 消息类型
	 * @return the fdMessageType
	 */
	public String getFdMessageType() {
		return this.fdMessageType;
	}
	
	/**
	 * set the fdMessageType - 消息类型
	 */
	public void setFdMessageType(String fdMessageType) {
		this.fdMessageType = fdMessageType;
	}
	/**
	 * get the fdMessageTitle - 消息标题
	 * @return the fdMessageTitle
	 */
	public String getFdMessageTitle() {
		return this.fdMessageTitle;
	}
	
	/**
	 * set the fdMessageTitle - 消息标题
	 */
	public void setFdMessageTitle(String fdMessageTitle) {
		this.fdMessageTitle = fdMessageTitle;
	}
	/**
	 * get the fdFrontPage - 对应页面
	 * @return the fdFrontPage
	 */
	public String getFdFrontPage() {
		return this.fdFrontPage;
	}
	
	/**
	 * set the fdFrontPage - 对应页面
	 */
	public void setFdFrontPage(String fdFrontPage) {
		this.fdFrontPage = fdFrontPage;
	}
	/**
	 * get the fdFrontType - 页面类型
	 * @return the fdFrontType
	 */
	public String getFdFrontType() {
		return this.fdFrontType;
	}
	
	/**
	 * set the fdFrontType - 页面类型
	 */
	public void setFdFrontType(String fdFrontType) {
		this.fdFrontType = fdFrontType;
	}
	/**
	 * get the fdStatus - 消息状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 消息状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdSendTime - 发送时间
	 * @return the fdSendTime
	 */
	public String getFdSendTime() {
		return this.fdSendTime;
	}
	
	/**
	 * set the fdSendTime - 发送时间
	 */
	public void setFdSendTime(String fdSendTime) {
		this.fdSendTime = fdSendTime;
	}
	/**
	 * get the fdReadTime - 阅读时间
	 * @return the fdReadTime
	 */
	public String getFdReadTime() {
		return this.fdReadTime;
	}
	
	/**
	 * set the fdReadTime - 阅读时间
	 */
	public void setFdReadTime(String fdReadTime) {
		this.fdReadTime = fdReadTime;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUserId")), fdUserId));
		setFdMessageId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMessageId")), fdMessageId));
		setFdBusinessId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBusinessId")), fdBusinessId));
		setFdMessageType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMessageType")), fdMessageType));
		setFdMessageTitle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMessageTitle")), fdMessageTitle));
		setFdFrontPage(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFrontPage")), fdFrontPage));
		setFdFrontType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFrontType")), fdFrontType));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendTime")), fdSendTime));
		setFdReadTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReadTime")), fdReadTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdUserId",StringUtils.toString(fdUserId, eiMetadata.getMeta("fdUserId")));	
			map.put("fdMessageId",StringUtils.toString(fdMessageId, eiMetadata.getMeta("fdMessageId")));	
			map.put("fdBusinessId",StringUtils.toString(fdBusinessId, eiMetadata.getMeta("fdBusinessId")));	
			map.put("fdMessageType",StringUtils.toString(fdMessageType, eiMetadata.getMeta("fdMessageType")));	
			map.put("fdMessageTitle",StringUtils.toString(fdMessageTitle, eiMetadata.getMeta("fdMessageTitle")));	
			map.put("fdFrontPage",StringUtils.toString(fdFrontPage, eiMetadata.getMeta("fdFrontPage")));	
			map.put("fdFrontType",StringUtils.toString(fdFrontType, eiMetadata.getMeta("fdFrontType")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdSendTime",StringUtils.toString(fdSendTime, eiMetadata.getMeta("fdSendTime")));	
			map.put("fdReadTime",StringUtils.toString(fdReadTime, eiMetadata.getMeta("fdReadTime")));	
			
		return map;
	
	}
}